module.exports = {
  apps: [
    {
      name: `test`,
      script: './bin/www',
      instances : 4, 
      kill_timeout : 3000,
    }
  ],
  deploy: {
    master: {
      user: 'root',
      host: '118.31.53.97',
      port: "22",
      ref: 'origin/master',
      repo: `git@gitee.com:coderxy/Blog.git`,
      path: `/nodejs/Blog`,
      'post-deploy': 'pm2 startOrGracefulReload ecosystem.config.js --env master',
      env: {
        NODE_ENV: 'master'
      }
    }
  }
};
